#ifndef DRAWEDPOLYGONDLG_H
#define DRAWEDPOLYGONDLG_H

#include <QWidget>
#include "ui_DrawedPolygonDlg.h"

class DrawableRasterLayer;
namespace TGS{
namespace MapControl{
	class MapWidget;
}
}

class DrawedPolygonDlg : public QWidget
{
	Q_OBJECT
	typedef TGS::MapControl::MapWidget MapWidget;
public:
	DrawedPolygonDlg(DrawableRasterLayer* drawableRasterLayer, MapWidget* map, QWidget *parent = 0);
	~DrawedPolygonDlg();
public:
	void updateTable();
private slots:
	void exportData();
	void importData();
	void deleteData();
	void itemDoubleClicked(QTableWidgetItem * item );
private:
	Ui::DrawedPolygonDlg ui;
	DrawableRasterLayer*	_drawableRasterLayer;
	MapWidget*	_map;
};

#endif // DRAWEDPOLYGONDLG_H
